package cc.qiblogs.news.ui.contract;

import java.util.List;

import cc.qiblogs.news.bean.Data;
import cc.qiblogs.news.bean.News;
import cc.qiblogs.news.common.base.BaseModel;
import cc.qiblogs.news.common.base.BasePresenter;
import cc.qiblogs.news.common.base.BaseView;
import rx.Observable;

/**
 * Created by qihuang on 16-11-5.
 */

public interface NewsContract {

    interface View extends BaseView {
        void returnChannelList(List<Data> dataList);
    }

    interface Model extends BaseModel {
        Observable getChannelList(String type);
    }

    abstract class Presenter extends BasePresenter<View, Model> {
        public Presenter(View view, Model model) {
            super(view, model);
        }
        public abstract void getChannelList(String type);
    }
}
